import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
// import mapboxgl from 'mapbox-gl' //导入MAPBOX语言包
// import MapboxLanguage from '@mapbox/mapbox-gl-language'
// import mapboxgl from 'static/mapbox-gl-cgcs2000.js'
// import 'static/mapbox-gl-cgcs2000.css'

// import 'amfe-flexible';

// 引入全局 uview 框架
import uView from '@/uview-ui'
Vue.use(uView)
Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store

Vue.filter('dateFormat', function(time) {
  const dt = new Date(time)
  const y = dt.getFullYear()
  const m = (dt.getMonth() + 1 + '').padStart(2, '0')
  const d = (dt.getDate() + '').padStart(2, '0')
  const hh = (dt.getHours() + '').padStart(2, '0')
  const mm = (dt.getMinutes() + '').padStart(2, '0')
  const ss = (dt.getSeconds() + '').padStart(2, '0')
  return `${y}-${m}-${d}  ${hh}:${mm}:${ss}`
})

App.mpType = 'app'

const app = new Vue({
	...App
})

app.$mount()
